<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas" width="1024" height="700" style="border: 1px solid #999;display:block;margin: 0 auto;">
        当前浏览器不支持Canvas
    </canvas>
    <script>
        window.onload = function() {
            const canvas = document.getElementById('canvas');
            let context = canvas.getContext('2d');
            

        }
    </script>
</body>
</html>